//
//  ShareStore.m
//  NewPro
//
//  Created by 何荧红 on 2019/4/28.
//  Copyright © 2019 何荧红. All rights reserved.
//

#import "ShareStore.h"

@implementation ShareStore

#pragma mark 我要分享
- (void)PostWithId:(NSString *)customId Success:(void(^)(NSDictionary *res))success Failure:(void(^)(NSError *error))failure{
    NSString *url = [NSString stringWithFormat:@"%@/api/custom/qrCode",IP];
    NSDictionary *prams = @{
                            @"customId":customId
                            };
    [HttpTool postUrlWithString:url parameters:prams success:^(id responseObject) {
        NSError *error = [HttpTool inspectError:responseObject];
        if (error == nil) {
            success(responseObject);
        }else{
            failure(error);
        }
    } failure:^(NSError *error) {
        failure(error);
    }];
}

@end
